<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>打开图片</title>
</head>
<body>
    <a href=" " onclick="document.getElementById('img').style.display='block'">打开图片</a >
    < img id="img" src="图片路径（如：./images/pic.jpg）" style="display:none;">
</body>
</html>